﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ListPopup.ascx.cs" Inherits="Controls_ListPopup" %>
<script runat="server">
    protected void lkn_Load(object sender, EventArgs e)
    {
        // fix ajax bug
        ScriptManager.GetCurrent(Page).RegisterAsyncPostBackControl(sender as Control);
    }
</script>

    <asp:PlaceHolder ID="plClear" runat="server">
        <asp:Button ID="btnClear" runat="server" OnClick="btnClear_Click" Text="Clear" UseSubmitBehavior="false" />
        <br />        
    </asp:PlaceHolder>

<asp:ListView        
 ID="rp" runat="server" OnItemCommand="rp_ItemCommand">
    <ItemTemplate>
        <asp:LinkButton ID="lkn" runat="server" Text='<%# Eval(DataTextField) %>' CommandArgument='<%# Eval(DataValueField) %>'
            CommandName="Show" OnLoad="lkn_Load"></asp:LinkButton>
        <br />
    </ItemTemplate>
</asp:ListView>

<asp:PlaceHolder ID="plOther" runat="server" Visible="false">
    other <asp:TextBox ID="txtOther" runat="server"></asp:TextBox>
    <asp:Button ID="btnSend" runat="server" Text="Send" OnClick="btnSend_Click" UseSubmitBehavior="false" />
</asp:PlaceHolder>